home *** CD-ROM | disk | FTP | other *** search
/ OpenGL Superbible (2nd Edition) / OpenGL SuperBible e2.iso / tools / Mesa-3.0 / Make-config < prev    next >
Encoding:
Text File  |  1998-08-30  |  37.3 KB  |  1,201 lines

  1. # Make-config
  2.  
  3. MAJOR=3
  4. MINOR=0
  5. VERSION=$(MAJOR).$(MINOR)
  6.  
  7. # Mesa 3-D graphics library
  8. # Copyright (C) 1995-1998  Brian Paul
  9. #
  10. # This library is free software; you can redistribute it and/or
  11. # modify it under the terms of the GNU Library General Public
  12. # License as published by the Free Software Foundation; either
  13. # version 2 of the License, or (at your option) any later version.
  14. #
  15. # This library is distributed in the hope that it will be useful,
  16. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  18. # Library General Public License for more details.
  19. #
  20. # You should have received a copy of the GNU Library General Public
  21. # License along with this library; if not, write to the Free
  22. # Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  23.  
  24.  
  25. # $Id: Make-config,v 3.30 1998/08/30 03:27:42 brianp Exp $
  26.  
  27. # $Log: Make-config,v $
  28. # Revision 3.30  1998/08/30 03:27:42  brianp
  29. # minor changes to Linux/Alpha configs per Dave Gilbert
  30. #
  31. # Revision 3.29  1998/08/16 15:01:45  brianp
  32. # added -lXmu to mklinux config
  33. #
  34. # Revision 3.28  1998/08/05 01:27:47  brianp
  35. # updated OS/2 config (Alexander Mai)
  36. #
  37. # Revision 3.27  1998/08/01 03:58:11  brianp
  38. # added hpux10-gcc-sl and irix6-gcc-n32-sl configs (Albert De Knuydt)
  39. #
  40. # Revision 3.26  1998/07/30 23:51:47  brianp
  41. # updated BeOS configs (Ed Silva)
  42. #
  43. # Revision 3.25  1998/07/30 23:26:55  brianp
  44. # fixed XLIBS for ultrix (Albert De Knuydt)
  45. #
  46. # Revision 3.24  1998/07/26 01:17:05  brianp
  47. # added irix5-gcc config
  48. #
  49. # Revision 3.23  1998/07/09 03:20:05  brianp
  50. # replaced asm-386.S with asm_386.S, another IRIX library fix
  51. #
  52. # Revision 3.22  1998/07/08 02:03:16  brianp
  53. # added linux-386-pthread-shared config
  54. #
  55. # Revision 3.21  1998/07/08 01:40:28  brianp
  56. # -rpath changes for IRIX configs
  57. #
  58. # Revision 3.20  1998/07/08 01:38:27  brianp
  59. # added linux-ggi config
  60. #
  61. # Revision 3.19  1998/06/23 00:11:47  brianp
  62. # added -I/usr/include/glide to CFLAGS for Linux Glide configs
  63. #
  64. # Revision 3.18  1998/06/22 01:53:58  brianp
  65. # added linux-386-glide-mits config
  66. #
  67. # Revision 3.17  1998/06/22 01:46:22  brianp
  68. # updated linux-ppc CFLAGS per Jens Ch. Restemeier
  69. #
  70. # Revision 3.16  1998/06/20 04:14:11  brianp
  71. # added NO_CONST define to IRIX 6 64-bit configs
  72. #
  73. # Revision 3.15  1998/06/14 15:15:19  brianp
  74. # minor changes to IRIX configs
  75. #
  76. # Revision 3.14  1998/06/01 01:14:06  brianp
  77. # removed ucb stuff from Solaris configs (Steven Bellenot)
  78. #
  79. # Revision 3.13  1998/06/01 00:57:38  brianp
  80. # updated NeXT and OpenStep configs
  81. #
  82. # Revision 3.12  1998/06/01 00:43:44  brianp
  83. # added linux-sparc config from Timothy Small
  84. #
  85. # Revision 3.11  1998/06/01 00:41:56  brianp
  86. # fixed X lib path problem for hpux9-gcc-sl
  87. #
  88. # Revision 3.10  1998/05/31 23:51:24  brianp
  89. # added -DNO_CONST to a few more configs
  90. #
  91. # Revision 3.9  1998/05/31 23:34:38  brianp
  92. # updated OS/2 support from Alexander Mai
  93. #
  94. # Revision 3.8  1998/05/07 00:44:20  brianp
  95. # various linux-ppc config changes
  96. #
  97. # Revision 3.7  1998/04/22 00:49:57  brianp
  98. # removed -fullwarn from irix configs.  replaced a USE_ASM symbol
  99. #
  100. # Revision 3.6  1998/04/20 23:54:16  brianp
  101. # added DavidB's 3Dfx v0.25 driver changes
  102. #
  103. # Revision 3.5  1998/04/20 21:51:28  brianp
  104. # small change in CFLAGS for hpux9-gcc-sl
  105. #
  106. # Revision 3.4  1998/04/18 05:02:20  brianp
  107. # added linux-sparc5-elf, renamed USE_ASM to USE_X86_ASM
  108. #
  109. # Revision 3.3  1998/03/24 00:52:28  brianp
  110. # added openstep-dynlib config
  111. #
  112. # Revision 3.2  1998/03/11 03:13:00  brianp
  113. # added linux-ppc-so config
  114. #
  115. # Revision 3.1  1998/02/21 01:40:59  brianp
  116. # added sunos4-gcc-x11r6-sl
  117. #
  118. # Revision 3.0  1998/02/14 17:44:15  brianp
  119. # initial rev
  120. #
  121.  
  122.  
  123.  
  124. # The following variables are passed to each Makefile:
  125. #
  126. # GL_LIB      the name of the Mesa "GL" library file (usually libMesaGL.a)
  127. # GLU_LIB     the name of the Mesa "GLU" library file (usually libMesaGLU.a)
  128. # GLUT_LIB    the name of the GLUT library file (usually libglut.a)
  129. # CC          the C compiler (usually cc or gcc)
  130. # CFLAGS      flags to C compiler (usually -O)
  131. # MAKELIB     the script or command to make a library file
  132. # XLIBS       libraries needed to link X apps (at least -lX11)
  133. #
  134. # Optionally, you can add definitions for the INCDIR and LIBDIR variables
  135. # which specify where to find the Mesa include files and where to put the
  136. # Mesa libraries.  The defaults are ../include and ../lib.  This use of
  137. # overriding makefile macros on the command line should work with most
  138. # variants of make.
  139. #
  140. # To enable profiling add -DPROFILE to the CFLAGS line.  Be sure to set the
  141. # MESA_PROFILE environment variable to enable printing of the profile report.
  142. #
  143. # If your system supports the X Shared Memory extension add -DSHM to the
  144. # CFLAGS line and add -lXext to the XLIBS line.
  145. #
  146. # Some compilers complain about const parameters.  Adding -DNO_CONST to the
  147. # CFLAGS line should silence suth warnings.
  148. #
  149. #
  150. # To add a new system configuration just follow the examples below and update
  151. # the top-level Makefile.
  152.  
  153.  
  154.  
  155. aix:
  156.     $(MAKE) $(MFLAGS) targets \
  157.     "GL_LIB = libMesaGL.a" \
  158.     "GLU_LIB = libMesaGLU.a" \
  159.     "GLUT_LIB = libglut.a" \
  160.     "CC = cc" \
  161.     "CFLAGS = -O -DAIXV3" \
  162.     "MAKELIB = ../mklib.ar-ruv" \
  163.     "XLIBS = -lX11 -lXext -lXmu -lXi"
  164.  
  165. aix-sl:
  166.     $(MAKE) $(MFLAGS) targets \
  167.     "GL_LIB = libMesaGL.a" \
  168.     "GLU_LIB = libMesaGLU.a" \
  169.     "GLUT_LIB = libglut.a" \
  170.     "CC = cc" \
  171.     "CFLAGS = -O -DAIXV3" \
  172.     "MAKELIB = ../mklib.aix" \
  173.     "XLIBS = -lX11 -lXext -lXmu -lXi"
  174.  
  175. # Make-config additions for the Amiga 3000 UX
  176. # Carlyn Voss Iuzzolino   5/8/95: 
  177. # Modified gcc part as follows:
  178. # Needed to take out -pedantic because that makes gcc complain about 
  179. # ANSI-CC not allowing #ident in Amiga's /usr/include/*.h files.
  180. # Took out -O2 (unrecognized option for gcc on the Amiga).
  181. # Needs /usr/lib/libsocket.a file. 
  182. amix:
  183.     $(MAKE) $(MFLAGS) targets \
  184.     "GL_LIB = libMesaGL.a" \
  185.     "GLU_LIB = libMesaGLU.a" \
  186.     "GLUT_LIB = libglut.a" \
  187.     "CC = cc" \
  188.     "CFLAGS =" \
  189.     "MAKELIB = ../mklib.ar-ruv" \
  190.     "XLIBS = -lX11 -lsocket -lnsl "
  191.  
  192. beos-ppc:
  193.     $(MAKE) -f Makefile.BeOS targets \
  194.     "GL_LIB = libMesaGL.so" \
  195.     "GLU_LIB = libMesaGLU.so" \
  196.     "GLUT_LIB = libglut.so" \
  197.     "CC = mwccppc" \
  198.     "CFLAGS = -O7" \
  199.     "MAKELIB = ../mklib.beos-ppc" \
  200.     "DRIVER_SOURCES = osmesa.c"
  201.  
  202. beos-x86:
  203.     $(MAKE) -f Makefile.BeOS targets \
  204.     "GL_LIB = libMesaGL.so" \
  205.     "GLU_LIB = libMesaGLU.so" \
  206.     "GLUT_LIB = libglut.so" \
  207.     "CC = mwccx86" \
  208.     "CFLAGS = -O7" \
  209.     "MAKELIB = ../mklib.beos-x86" \
  210.     "DRIVER_SOURCES = osmesa.c"
  211.  
  212. beos-glide:
  213.     $(MAKE) -f Makefile.BeOS targets \
  214.     "GL_LIB = libMesaGL.so" \
  215.     "GLU_LIB = libMesaGLU.so" \
  216.     "GLUT_LIB = libglut.so" \
  217.     "CC = mwccppc" \
  218.     "CFLAGS = -O7 -DFX -i ../../glide/include" \
  219.     "MAKELIB = ../mklib.beos-ppc" \
  220.     "DRIVER_SOURCES = fxmesa1.c fxmesa2.c fxmesa3.c fxmesa4.c fxmesa5.c fxmesa6.c"
  221.  
  222. bsdos:
  223.     $(MAKE) $(MFLAGS) targets \
  224.     "GL_LIB = libMesaGL.a" \
  225.     "GLU_LIB = libMesaGLU.a" \
  226.     "GLUT_LIB = libglut.a" \
  227.     "CC = gcc" \
  228.     "CFLAGS = -I/usr/X11/include -O2" \
  229.     "MAKELIB = ../mklib.ar-ruv" \
  230.     "XLIBS = -L/usr/X11/lib -lX11 -lipc"
  231.  
  232. cygnus:
  233.     $(MAKE) -f Makefile.cygnus $(MFLAGS) targets \
  234.     "GL_LIB = libMesaGL.a" \
  235.     "GLU_LIB = libMesaGLU.a" \
  236.     "GLUT_LIB = libglut.a" \
  237.     "CC = gcc" \
  238.     "DLLTOOL = dlltool" \
  239.     "WING_DIR= /wing" \
  240.     "LD = ld" \
  241.     "CFLAGS = -I. -DWIN32 -D__WIN32__ -D_WINDOWS \
  242.         -O2 -funroll-loops \
  243.         -fexpensive-optimizations -fomit-frame-pointer -ffast-math \
  244.         -malign-loops=2 -malign-jumps=2 -malign-functions=2" \
  245.     "MAKELIB = ../mklib.ar-ruv" \
  246.     "WLIBS = ../lib/wing32.a -lkernel32 -luser32 -lgdi32"
  247.  
  248. cygnus-linux:
  249.     $(MAKE) -f Makefile.cygnus $(MFLAGS) targets \
  250.     "GL_LIB = libMesaGL.a" \
  251.     "GLU_LIB = libMesaGLU.a" \
  252.     "GLUT_LIB = libglut.a" \
  253.     "CC = gnuwin32gcc" \
  254.     "DLLTOOL = gnuwin32dlltool --as gnuwin32as" \
  255.     "LD = gnuwin32ld" \
  256.     "WING_DIR= /dos/wing" \
  257.     "CFLAGS = -I. -DWIN32 -D__WIN32__ -D_WINDOWS \
  258.         -O2 -funroll-loops \
  259.         -fexpensive-optimizations -fomit-frame-pointer -ffast-math \
  260.         -malign-loops=2 -malign-jumps=2 -malign-functions=2" \
  261.     "MAKELIB = ../mklib.cygnus-linux" \
  262.     "WLIBS = ../lib/wing32.a -lkernel32 -luser32 -lgdi32"
  263.  
  264. dgux:
  265.     $(MAKE) $(MFLAGS) targets \
  266.     "GL_LIB = libMesaGL.a" \
  267.     "GLU_LIB = libMesaGLU.a" \
  268.     "GLUT_LIB = libglut.a" \
  269.     "CC = gcc" \
  270.     "CFLAGS = -O" \
  271.     "MAKELIB = ../mklib.ar-ruv" \
  272.     "XLIBS = -lX11"
  273.  
  274. freebsd:
  275.     $(MAKE) $(MFLAGS) targets \
  276.     "GL_LIB = libMesaGL.a" \
  277.     "GLU_LIB = libMesaGLU.a" \
  278.     "GLUT_LIB = libglut.a" \
  279.     "CC = gcc" \
  280.     "CFLAGS = -O2 -fPIC -pedantic -I/usr/X11R6/include -DSHM -DHZ=100" \
  281.     "MAKELIB = ../mklib.freebsd" \
  282.     "XLIBS = -L/usr/X11R6/lib -lXext -lXmu -lXi -lX11"
  283.  
  284. freebsd-386:
  285.     $(MAKE) $(MFLAGS) targets \
  286.     "GL_LIB = libMesaGL.a" \
  287.     "GLU_LIB = libMesaGLU.a" \
  288.     "GLUT_LIB = libglut.a" \
  289.     "CC = gcc" \
  290.     "CFLAGS = -O3 -ffast-math -fPIC -pedantic -I/usr/X11R6/include -DSHM -DHZ=100 -DUSE_X86_ASM -DFREEBSD" \
  291.     "MAKELIB = ../mklib.freebsd" \
  292.     "XLIBS = -L/usr/X11R6/lib -lXext -lXmu -lXi -lX11" \
  293.     "ASM_SOURCES = asm_386.S"
  294.  
  295. gcc:
  296.     $(MAKE) $(MFLAGS) targets \
  297.     "GL_LIB = libMesaGL.a" \
  298.     "GLU_LIB = libMesaGLU.a" \
  299.     "GLUT_LIB = libglut.a" \
  300.     "CC = gcc" \
  301.     "CFLAGS = -pedantic -O2" \
  302.     "MAKELIB = ../mklib.ar-ruv" \
  303.     "XLIBS = -lX11"
  304.  
  305. hpux9:
  306.     $(MAKE) $(MFLAGS) targets \
  307.     "GL_LIB = libMesaGL.a" \
  308.     "GLU_LIB = libMesaGLU.a" \
  309.     "GLUT_LIB = libglut.a" \
  310.     "CC = cc" \
  311.     "CFLAGS = +O3 -Aa -D_HPUX_SOURCE -I/usr/include/X11R5 -DSHM" \
  312.     "MAKELIB = ../mklib.ar-ruv" \
  313.     "XLIBS = -L/usr/lib/X11R5 -lXext -lXmu -lXi -lX11"
  314.  
  315. hpux9-gcc:
  316.     $(MAKE) $(MFLAGS) targets \
  317.     "GL_LIB = libMesaGL.a" \
  318.     "GLU_LIB = libMesaGLU.a" \
  319.     "GLUT_LIB = libglut.a" \
  320.     "CC = gcc" \
  321.     "CFLAGS = -ansi -O3 -D_HPUX_SOURCE -I/usr/include/X11R5 -DSHM" \
  322.     "MAKELIB = ../mklib.ar-ruv" \
  323.     "XLIBS = -L/usr/lib/X11R5 -lXext -lXmu -lXi -lX11"
  324.  
  325. hpux9-sl:
  326.     $(MAKE) $(MFLAGS) targets \
  327.     "GL_LIB = libMesaGL.sl" \
  328.     "GLU_LIB = libMesaGLU.sl" \
  329.     "GLUT_LIB = libglut.sl" \
  330.     "CC = cc" \
  331.     "CFLAGS = +z +O3 +Olibcalls +ESlit -Aa +Onolimit -D_HPUX_SOURCE -I/usr/include/X11R5 -DSHM" \
  332.     "MAKELIB = ../mklib.hpux" \
  333.     "XLIBS = -L/usr/lib/X11R5 -s -Wl,+s,-B,nonfatal,-B,immediate -lXext -lXmu -lXi -lX11"
  334.  
  335. hpux9-gcc-sl:
  336.     $(MAKE) $(MFLAGS) targets \
  337.     "GL_LIB = libMesaGL.sl" \
  338.     "GLU_LIB = libMesaGLU.sl" \
  339.     "GLUT_LIB = libglut.sl" \
  340.     "CC = gcc" \
  341.     "CFLAGS = -fPIC -ansi -O3 -D_HPUX_SOURCE -I/usr/include/X11R5 -DSHM" \
  342.     "MAKELIB = ../mklib.hpux" \
  343.     "XLIBS = -L/usr/lib/X11R5 -lXext -lXmu -lXi -lX11"
  344.  
  345. hpux10:
  346.     $(MAKE) $(MFLAGS) targets \
  347.     "GL_LIB = libMesaGL.a" \
  348.     "GLU_LIB = libMesaGLU.a" \
  349.     "GLUT_LIB = libglut.a" \
  350.     "CC = cc" \
  351.     "CFLAGS = +O3 +DAportable -Aa -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DSHM" \
  352.     "MAKELIB = ../mklib.ar-ruv" \
  353.     "XLIBS = -L/usr/lib/X11R6 -L/usr/contrib/X11R6/lib -lXext -lXmu -lXi -lX11"
  354.  
  355. hpux10-gcc:
  356.     $(MAKE) $(MFLAGS) targets \
  357.     "GL_LIB = libMesaGL.a" \
  358.     "GLU_LIB = libMesaGLU.a" \
  359.     "GLUT_LIB = libglut.a" \
  360.     "CC = gcc" \
  361.     "CFLAGS = -ansi -O3 -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include  -DSHM" \
  362.     "MAKELIB = ../mklib.ar-ruv" \
  363.     "XLIBS = -L/usr/lib/X11R6 -L/usr/contrib/X11R6/lib -lXext -lXmu -lXi -lX11"
  364.  
  365. hpux10-gcc-sl:
  366.     $(MAKE) $(MFLAGS) targets \
  367.     "GL_LIB = libMesaGL.sl" \
  368.     "GLU_LIB = libMesaGLU.sl" \
  369.     "GLUT_LIB = libglut.sl" \
  370.     "CC = gcc" \
  371.     "CFLAGS = -fPIC -ansi -O3 -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/include -DSHM" \
  372.     "MAKELIB = ../mklib.hpux" \
  373.     "XLIBS = -L/usr/lib/X11R6 -L/usr/contrib/X11R6/lib -lXext -lXmu -lXi -lX11"
  374.  
  375.  
  376. # For IRIX 4: don't use -fullwarn because it causes too much garbage
  377. irix4:
  378.     pmake $(MFLAGS) targets \
  379.     "GL_LIB = libMesaGL.a" \
  380.     "GLU_LIB = libMesaGLU.a" \
  381.     "GLUT_LIB = libglut.a" \
  382.     "CC = cc" \
  383.     "CFLAGS = -O2 -ansi -prototypes -DSHM" \
  384.     "MAKELIB = ../mklib.ar-rcv" \
  385.     "XLIBS = -lXext -lXmu -lXi -lX11"
  386.  
  387. # On IRIX 5.3 -sopt causes a problem in drawpixels.c so we don't use it
  388. irix5:
  389.     pmake $(MFLAGS) targets \
  390.     "GL_LIB = libMesaGL.a" \
  391.     "GLU_LIB = libMesaGLU.a" \
  392.     "GLUT_LIB = libglut.a" \
  393.     "CC = cc" \
  394.     "CFLAGS = -O2 -ansi -fullwarn -DSHM" \
  395.     "MAKELIB = ../mklib.ar-rcv" \
  396.     "XLIBS = -lX11 -lXext -lXmu -lXi"
  397.  
  398. # On IRIX 5.2+gcc
  399. irix5-gcc:
  400.     make $(MFLAGS) targets \
  401.     "GL_LIB = libMesaGL.a" \
  402.     "GLU_LIB = libMesaGLU.a" \
  403.     "GLUT_LIB = libglut.a" \
  404.     "CC = gcc" \
  405.     "CFLAGS = -O2 -pedantic -DSHM" \
  406.     "MAKELIB = ../mklib.ar-rcv" \
  407.     "XLIBS = -lX11 -lXext -lXmu -lXi"
  408.  
  409. # IRIX 5 using Dynamic Shared Objects (DSO)
  410. irix5-dso:
  411.     pmake $(MFLAGS) targets \
  412.     "GL_LIB = libMesaGL.so" \
  413.     "GLU_LIB = libMesaGLU.so" \
  414.     "GLUT_LIB = libglut.so" \
  415.     "CC = cc" \
  416.     "CFLAGS = -O2 -ansi -fullwarn -DSHM" \
  417.     "MAKELIB = ../mklib.irix5" \
  418.     "XLIBS = -rpath ../lib -lX11 -lXmu -lXi"
  419.  
  420. irix6-32:
  421.     pmake $(MFLAGS) targets \
  422.     "GL_LIB = libMesaGL.a" \
  423.     "GLU_LIB = libMesaGLU.a" \
  424.     "GLUT_LIB = libglut.a" \
  425.     "CC = cc" \
  426.     "CFLAGS = -32 -mips2 -O2 -ansi -DSHM -DNO_CONST" \
  427.     "MAKELIB = ../mklib.ar-rcv" \
  428.     "XLIBS = -lX11 -lXext -lXmu -lXi"
  429.  
  430. irix6-32-dso:
  431.     pmake $(MFLAGS) targets \
  432.     "GL_LIB = libMesaGL.so" \
  433.     "GLU_LIB = libMesaGLU.so" \
  434.     "GLUT_LIB = libglut.so" \
  435.     "CC = cc" \
  436.     "CFLAGS = -32 -mips2 -O2 -ansi -DSHM -DNO_CONST" \
  437.     "MAKELIB = ../mklib.irix6-32" \
  438.     "XLIBS = -rpath ../lib -lX11 -lXext -lXmu -lXi"
  439.  
  440. # For IRIX 6: -woff:
  441. #   1209 - controlling expression is constant
  442. irix6-n32:
  443.     pmake $(MFLAGS) targets \
  444.     "GL_LIB = libMesaGL.a" \
  445.     "GLU_LIB = libMesaGLU.a" \
  446.     "GLUT_LIB = libglut.a" \
  447.     "LIBDIR = ../lib32" \
  448.     "CC = cc" \
  449.     "CFLAGS = -n32 -mips3 -O3 -ansi -woff 1209 -DNO_CONST" \
  450.     "MAKELIB = ../mklib.ar-rcv" \
  451.     "XLIBS = -lX11 -lXext -lXmu -lXi"
  452.  
  453. irix6-n32-dso:
  454.     pmake $(MFLAGS) targets \
  455.     "GL_LIB = libMesaGL.so" \
  456.     "GLU_LIB = libMesaGLU.so" \
  457.     "GLUT_LIB = libglut.so" \
  458.     "LIBDIR = ../lib32" \
  459.     "CC = cc" \
  460.     "CFLAGS = -n32 -mips3 -O3 -ansi -DSHM -woff 1185 -DNO_CONST" \
  461.     "MAKELIB = ../mklib.irix6-n32" \
  462.     "XLIBS = -rpath ../lib32 -lX11 -lXmu -lXi"
  463.  
  464. irix6-gcc-n32-sl:
  465.     make $(MFLAGS) targets \
  466.     "GL_LIB = libMesaGL.so" \
  467.     "GLU_LIB = libMesaGLU.so" \
  468.     "GLUT_LIB = libglut.so" \
  469.     "LIBDIR = ../lib32" \
  470.     "CC = gcc" \
  471.     "CFLAGS = -mabi=n32 -mips3 -O3 -DSHM" \
  472.     "MAKELIB = ../mklib.irix6-n32" \
  473.     "XLIBS = -rpath ../lib32 -lX11 -lXmu -lXi"
  474.  
  475. # For IRIX 6-64: -woff:
  476. #   1068 - integer conversion resulted in a change of sign
  477. #   1069 - integer conversion resulted in truncation
  478. #   1174 - variable was declared but never referenced
  479. #   1185 - enumerated type mixed with another type
  480. #   1209 - controlling expression is constant
  481. #   1474 - declaring a void parameter list with a typedef is nonstandard
  482. #   1552 - variable was set but never used
  483. irix6-64:
  484.     pmake $(MFLAGS) targets \
  485.     "GL_LIB = libMesaGL.a" \
  486.     "GLU_LIB = libMesaGLU.a" \
  487.     "GLUT_LIB = libglut.a" \
  488.     "LIBDIR = ../lib64" \
  489.     "CC = cc" \
  490.     "CFLAGS = -64 -O3 -ansi -woff 1068,1069,1174,1185,1209,1474,1552 -DSHM -DNO_CONST" \
  491.     "MAKELIB = ../mklib.ar-rcv" \
  492.     "XLIBS = -lX11 -lXext -lXmu -lXi"
  493.  
  494. irix6-64-dso:
  495.     pmake $(MFLAGS) targets \
  496.     "GL_LIB = libMesaGL.so" \
  497.     "GLU_LIB = libMesaGLU.so" \
  498.     "GLUT_LIB = libglut.so" \
  499.     "LIBDIR = ../lib64" \
  500.     "CC = cc" \
  501.     "CFLAGS = -64 -O3 -ansi -woff 1068,1069,1174,1185,1209,1474,1552 -DSHM -DNO_CONST" \
  502.     "MAKELIB = ../mklib.irix6-64" \
  503.     "XLIBS = -rpath ../lib64 -lX11 -lXmu -lXi"
  504.  
  505. # May want to try these CFLAGS for better performance under Linux and GCC:
  506. # -fPIC -O2 -ansi -pedantic -mieee-fp -DSHM -funroll-loops
  507. # -fexpensive-optimizations -fomit-frame-pointer -ffast-math
  508. # and  -malign-loops=2 -malign-jumps=2 -malign-functions=2 for Pentium
  509.  
  510. linux:
  511.     $(MAKE) $(MFLAGS) targets \
  512.     "GL_LIB = libMesaGL.a" \
  513.     "GLU_LIB = libMesaGLU.a" \
  514.     "GLUT_LIB = libglut.a" \
  515.     "CC = gcc" \
  516.     "CFLAGS = -O2 -funroll-loops -ansi -pedantic -ffast-math -D_SVID_SOURCE -D_BSD_SOURCE -DSHM -I/usr/X11R6/include" \
  517.     "MAKELIB = ../mklib.ar-ruv" \
  518.     "XLIBS = -L/usr/X11/lib -L/usr/X11R6/lib -lX11 -lXext -lXmu -lXt -lXi -lSM -lICE"
  519.  
  520. # One Linux user reports having to use these XLIBS:
  521. #    -lMrm -lXmu -lXi -lXt -lXext -lXmu -lXi -lSM -lICE -lX11
  522.  
  523. linux-elf:
  524.     $(MAKE) $(MFLAGS) targets \
  525.     "GL_LIB = libMesaGL.so" \
  526.     "GLU_LIB = libMesaGLU.so" \
  527.     "GLUT_LIB = libglut.so" \
  528.     "CC = gcc" \
  529.     "CFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_SVID_SOURCE -D_BSD_SOURCE -DSHM -I/usr/X11R6/include" \
  530.     "MAKELIB = ../mklib.linux" \
  531.     "XLIBS = -L/usr/X11/lib -L/usr/X11R6/lib -lX11 -lXext -lXmu -lXt -lXi -lSM -lICE"
  532.  
  533. linux-glide:
  534.     $(MAKE) $(MFLAGS) targets \
  535.     "GL_LIB = libMesaGL.so" \
  536.     "GLU_LIB = libMesaGLU.so" \
  537.     "GLUT_LIB = libglut.so" \
  538.     "CC = gcc" \
  539.     "CFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_SVID_SOURCE -D_BSD_SOURCE -DSHM -DFX -I/usr/X11R6/include -I/usr/include/glide -I/usr/local/glide/include" \
  540.     "MAKELIB = ../mklib.glide" \
  541.     "XLIBS = -L/usr/X11/lib -L/usr/X11R6/lib -lX11 -lXext -lXmu -lXt -lXi -lSM -lICE"
  542.  
  543. # Linux on Intel X86: assembly language optimizations
  544. linux-386:
  545.     $(MAKE) $(MFLAGS) targets \
  546.     "GL_LIB = libMesaGL.a" \
  547.     "GLU_LIB = libMesaGLU.a" \
  548.     "GLUT_LIB = libglut.a" \
  549.     "CC = gcc" \
  550.     "CFLAGS = -O2 -funroll-loops -ansi -pedantic -ffast-math -D_SVID_SOURCE -D_BSD_SOURCE -DSHM -DUSE_X86_ASM -I/usr/X11R6/include" \
  551.     "MAKELIB = ../mklib.ar-ruv" \
  552.     "XLIBS = -L/usr/X11/lib -L/usr/X11R6/lib -lX11 -lXext -lXmu -lXt -lXi -lSM -lICE" \
  553.     "ASM_SOURCES = asm_386.S"
  554.  
  555. linux-386-elf:
  556.     $(MAKE) $(MFLAGS) targets \
  557.     "GL_LIB = libMesaGL.so" \
  558.     "GLU_LIB = libMesaGLU.so" \
  559.     "GLUT_LIB = libglut.so" \
  560.     "CC = gcc" \
  561.     "CFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_SVID_SOURCE -D_BSD_SOURCE -DSHM -DUSE_X86_ASM -I/usr/X11R6/include" \
  562.     "MAKELIB = ../mklib.linux" \
  563.     "XLIBS = -L/usr/X11/lib -L/usr/X11R6/lib -lX11 -lXext -lXmu -lXt -lXi -lSM -lICE" \
  564.     "ASM_SOURCES = asm_386.S"
  565.  
  566. linux-386-glide:
  567.     $(MAKE) $(MFLAGS) targets \
  568.     "GL_LIB = libMesaGL.so" \
  569.     "GLU_LIB = libMesaGLU.so" \
  570.     "GLUT_LIB = libglut.so" \
  571.     "CC = gcc" \
  572.     "CFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_SVID_SOURCE -D_BSD_SOURCE -DUSE_X86_ASM -DSHM -DFX -I/usr/X11R6/include -I/usr/include/glide -I/usr/local/glide/include" \
  573.     "MAKELIB = ../mklib.glide" \
  574.     "XLIBS = -L/usr/X11/lib -L/usr/X11R6/lib -lX11 -lXext -lXmu -lXt -lXi -lSM -lICE" \
  575.     "ASM_SOURCES = asm_386.S"
  576.  
  577. linux-386-glide-mits:
  578.     $(MAKE) $(MFLAGS) targets \
  579.     "GL_LIB = libMesaGL.so" \
  580.     "GLU_LIB = libMesaGLU.so" \
  581.     "GLUT_LIB = libglut.so" \
  582.     "CC = gcc" \
  583.     "CFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_SVID_SOURCE -D_BSD_SOURCE -DSHM -DFX -D_REENTRANT -DMITS -DUSE_X86_ASM -I/usr/X11R6/include -I/usr/include/glide -I/usr/local/glide/include" \
  584.     "MAKELIB = ../mklib.mits" \
  585.     "XLIBS = -L/usr/X11/lib -L/usr/X11R6/lib -lX11 -lXext -lXmu -lXt -lXi -lSM -lICE" \
  586.     "ASM_SOURCES = asm_386.S"
  587.  
  588. linux-386-opt-V2-glide:
  589.     $(MAKE) $(MFLAGS) targets \
  590.     "GL_LIB = libMesaGL.so" \
  591.     "GLU_LIB = libMesaGLU.so" \
  592.     "GLUT_LIB = libglut.so" \
  593.     "CC = gcc" \
  594.     "CFLAGS = -O3 -m486 -fomit-frame-pointer -pipe -ansi -pedantic -ffast-math -fexpensive-optimizations -malign-loops=2 -malign-jumps=2 -malign-functions=2 -D_SVID_SOURCE -D_BSD_SOURCE -DSHM -DFX -DFX_V2 -DUSE_X86_ASM -I/usr/X11R6/include -I/usr/include/glide -I/usr/local/glide/include"\
  595.     "MAKELIB = ../mklib.glide" \
  596.     "XLIBS = -L/usr/X11/lib -L/usr/X11R6/lib -lX11 -lXext -lXmu -lXt -lXi -lSM -lICE" \
  597.     "ASM_SOURCES = asm_386.S"
  598.  
  599. linux-386-opt-glide:
  600.     $(MAKE) $(MFLAGS) targets \
  601.     "GL_LIB = libMesaGL.so" \
  602.     "GLU_LIB = libMesaGLU.so" \
  603.     "GLUT_LIB = libglut.so" \
  604.     "CC = gcc" \
  605.     "CFLAGS = -O3 -m486 -fomit-frame-pointer -pipe -ansi -pedantic -ffast-math -fexpensive-optimizations -malign-loops=2 -malign-jumps=2 -malign-functions=2 -D_SVID_SOURCE -D_BSD_SOURCE -DSHM -DFX -DUSE_X86_ASM -I/usr/X11R6/include -I/usr/include/glide -I/usr/local/glide/include" \
  606.     "MAKELIB = ../mklib.glide" \
  607.     "XLIBS = -L/usr/X11/lib -L/usr/X11R6/lib -lX11 -lXext -lXmu -lXt -lXi -lSM -lICE" \
  608.     "ASM_SOURCES = asm_386.S"
  609.  
  610. # Contributed by John Stone
  611. linux-386-pthread:
  612.     $(MAKE) $(MFLAGS) targets \
  613.     "GL_LIB = libMesaGL.a" \
  614.     "GLU_LIB = libMesaGLU.a" \
  615.     "GLUT_LIB = libglut.a" \
  616.     "CC = gcc" \
  617.     "CFLAGS = -O2 -funroll-loops -ansi -pedantic -ffast-math -D_SVID_SOURCE -D_BSD_SOURCE -I/usr/X11R6/include -DSHM -DUSE_X86_ASM -D_REENTRANT -DTHREADS -DPTHREADS" \
  618.     "MAKELIB = ../mklib.ar-ruv" \
  619.     "XLIBS = -L/usr/X11/lib -L/usr/X11R6/lib -lX11 -lXext -lXmu -lXt -lXi -lSM -lICE -lpthread" \
  620.     "ASM_SOURCES = asm_386.S"
  621.  
  622. # Contributed by John Gotts
  623. linux-386-pthread-shared:
  624.     $(MAKE) $(MFLAGS) targets \
  625.     "GL_LIB = libMesaGL.so" \
  626.     "GLU_LIB = libMesaGLU.so" \
  627.     "GLUT_LIB = libglut.so" \
  628.     "CC = gcc" \
  629.     "CFLAGS = -O3 -fPIC -funroll-loops -ansi -pedantic -ffast-math -D_SVID_SOURCE -D_BSD_SOURCE -I/usr/X11R6/include -DSHM -DUSE_X86_ASM -D_REENTRANT -DTHREADS -DPTHREADS" \
  630.     "MAKELIB = ../mklib.linux" \
  631.     "XLIBS = -L/usr/X11/lib -L/usr/X11R6/lib -lX11 -lXext -lXmu -lXt -lXi -lSM -lICE -lpthread" \
  632.     "ASM_SOURCES = asm_386.S"
  633.  
  634. # contribued by Uwe_Maurer@t-online.de
  635. linux-ggi:
  636.     $(MAKE) $(MFLAGS) targets \
  637.     "GL_LIB = libMesaGL.so" \
  638.     "GLU_LIB = libMesaGLU.so" \
  639.     "GLUT_LIB = libglut.so" \
  640.     "CC = gcc"  \
  641.     "CFLAGS = -O3 -fPIC -ffast-math -D_SVID_SOURCE -D_BSD_SOURCE -I/usr/X11R6/include -DSHM -DGGI -DCDECL=" \
  642.     "MAKELIB = ../mklib.ggi" \
  643.     "XLIBS = -L/usr/X11/lib -L/usr/X11R6/lib -lX11 -lXext -lXmu -lXt -lXi -lSM -lICE -lggi"
  644.  
  645. # Linux on Alpha (based on email from John Ferguson ferguson@viz.tamu.edu)
  646. linux-alpha:
  647.     $(MAKE) $(MFLAGS) targets \
  648.     "GL_LIB = libMesaGL.a" \
  649.     "GLU_LIB = libMesaGLU.a" \
  650.     "GLUT_LIB = libglut.so" \
  651.     "CC = gcc" \
  652.     "CFLAGS = -O2 -pedantic -L/usr/X11R6/lib -D_XOPEN_SOURCE -DSHM" \
  653.     "MAKELIB = ../mklib.ar-ruv" \
  654.     "XLIBS = -L/usr/X11R6/lib -lX11"
  655.  
  656. linux-alpha-elf:
  657.     $(MAKE) $(MFLAGS) targets \
  658.     "GL_LIB = libMesaGL.so" \
  659.     "GLU_LIB = libMesaGLU.so" \
  660.     "GLUT_LIB = libglut.so" \
  661.     "CC = gcc" \
  662.     "CFLAGS = -ansi -pedantic -fPIC -D_XOPEN_SOURCE -DSHM" \
  663.     "MAKELIB = ../mklib.linux" \
  664.     "XLIBS = -L/usr/X11R6/lib -lX11 -lXext -lXmu -lXi"
  665.  
  666. # Not tested, but should be okay on any RedHat-based linux for PowerPC machines
  667. # If your linux supports shared libraries, you might want to build with the 
  668. # the "linux-ppc-shared" entry instead
  669. # You might want to change the mcpu flag appropriately for your 
  670. # processor (601, 603, 604, etc.), it but doesn't make much difference
  671. linux-ppc:
  672.     $(MAKE) $(MFLAGS) targets \
  673.     "GL_LIB = libMesaGL.a" \
  674.     "GLU_LIB = libMesaGLU.a" \
  675.     "GLUT_LIB = libglut.a" \
  676.     "CC = gcc" \
  677.     "CFLAGS = -O5 -mcpu=603 -ansi -pedantic -fsigned-char -fexpensive-optimizations -ffast-math -funroll-loops -D_SVID_SOURCE -D_BSD_SOURCE -I/usr/X11R6/include -DSHM" \
  678.     "MAKELIB = ../mklib.ar-ruv" \
  679.     "XLIBS = -L/usr/X11/lib -L/usr/X11R6/lib -lX11 -lXext -lXmu -lXt -lXi -lSM -lICE"
  680.  
  681. # Tested on mklinux pre-DR3  
  682. # Should run on any other RedHat-based linux for PowerPC machines
  683. # that supports shared libraries
  684. # You might want to change the mcpu flag appropriately for your 
  685. # processor (601, 603, 604, etc.), it but doesn't make much difference
  686. linux-ppc-so:
  687.     $(MAKE) targets \
  688.     "GL_LIB = libMesaGL.so" \
  689.     "GLU_LIB = libMesaGLU.so" \
  690.     "GLUT_LIB = libglut.so" \
  691.     "CC = gcc" \
  692.     "CFLAGS = -O5 -mcpu=603 -ansi -pedantic -fPIC -fsigned-char -fexpensive-optimizations -ffast-math -funroll-loops -D_SVID_SOURCE -D_BSD_SOURCE -I/usr/X11R6/include -DSHM" \
  693.     "MAKELIB = ../mklib.linux" \
  694.     "XLIBS = -L/usr/X11/lib -L/usr/X11R6/lib -lX11 -lXext -lXmu -lXt -lXi -lSM -lICE"
  695.  
  696. linux-sparc:
  697.     $(MAKE) $(MFLAGS) targets \
  698.     "GL_LIB = libMesaGL.a" \
  699.     "GLU_LIB = libMesaGLU.a" \
  700.     "GLUT_LIB = libglut.a" \
  701.     "CC = gcc" \
  702.     "CFLAGS = -pedantic -funroll-loops -O3 -DSHM" \
  703.     "MAKELIB = ../mklib.ar-ruv" \
  704.     "XLIBS = -L/usr/X11/lib -lX11 -lXext -lXt -lSM -lICE -lXmu -lXi"
  705.  
  706.  
  707. # Replace -mv8 with -mcypress, -msupersparc or -msparclite as appropriate.
  708. linux-sparc5-elf:
  709.     $(MAKE) $(MFLAGS) targets \
  710.     "GL_LIB = libMesaGL.so" \
  711.     "GLU_LIB = libMesaGLU.so" \
  712.     "GLUT_LIB = libglut.so" \
  713.     "CC = gcc" \
  714.     "CFLAGS = -mv8 -O2 -ffast-math -ansi -pedantic -fPIC -D_SVID_SOURCE -D_BSD_SOURCE -I/usr/X11R6/include -DSHM" \
  715.     "MAKELIB = ../mklib.linux" \
  716.     "XLIBS = -L/usr/X11/lib -L/usr/X11R6/lib -lX11 -lXext -lXmu -lXt -lXi -lSM -lICE"
  717.  
  718. # For Linux with prototype Cirrus Mondello 3-D card
  719. linux-mondello:
  720.     $(MAKE) $(MFLAGS) targets \
  721.     "GL_LIB = libMesaGL.so" \
  722.     "GLU_LIB = libMesaGLU.so" \
  723.     "GLUT_LIB = libglut.so" \
  724.     "CC = gcc" \
  725.     "CFLAGS = -O2 -ansi -pedantic -fPIC -funroll-loops -mieee-fp -DSHM -DMONDELLO" \
  726.     "MAKELIB = ../mklib.linux" \
  727.     "XLIBS = -L/usr/X11/lib -lX11 -lXext -lXmu -lXi -lclgd547x"
  728.  
  729. # May want to add these CFLAGS for better performance under LynxOS and GCC:
  730. # -fPIC -O2 -ansi -pedantic -mieee-fp -DSHM -funroll-loops
  731. # -fexpensive-optimizations -fomit-frame-pointer -ffast-math
  732. # and  -malign-loops=2 -malign-jumps=2 -malign-functions=2 for Pentium
  733.  
  734. lynxos:
  735.     $(MAKE) $(MFLAGS) targets \
  736.     "GL_LIB = libMesaGL.a" \
  737.     "GLU_LIB = libMesaGLU.a" \
  738.     "GLUT_LIB = libglut.a" \
  739.     "CC = gcc" \
  740.     "CFLAGS = -O2 -ansi -pedantic -funroll-loops -ffast-math -DSHM" \
  741.     "MAKELIB = ./mklib.ar-ruv" \
  742.     "XLIBS = -L/usr/X11/lib -lX11 -lXext -lXmu -lXi -lbsd"
  743.  
  744. machten-2.2:
  745.     $(MAKE) $(MFLAGS) targets \
  746.     "GL_LIB = libMesaGL.a" \
  747.     "GLU_LIB = libMesaGLU.a" \
  748.     "GLUT_LIB = libglut.a" \
  749.     "CC = gcc" \
  750.     "CFLAGS = -DTENON -D__MACHTEN__ -fstrength-reduce -m68881 -O2" \
  751.     "MAKELIB = ../mklib.ar-rcv" \
  752.     "XLIBS = -L/usr/lib/X11 -lX11"
  753.  
  754. machten-4.0:
  755.     $(MAKE) targets \
  756.     "GL_LIB = libMesaGL.a" \
  757.     "GLU_LIB = libMesaGLU.a" \
  758.     "GLUT_LIB = libglut.a" \
  759.     "CC = gcc" \
  760.     "CFLAGS = -DTENON -D__MACHTEN__ -fstrength-reduce -O2" \
  761.     "MAKELIB = ../mklib.ar-rcv" \
  762.     "XLIBS = -L/usr/X11R5/lib -lX11"
  763.  
  764. mklinux:
  765.     $(MAKE) targets \
  766.     "GL_LIB = libMesaGL.a" \
  767.     "GLU_LIB = libMesaGLU.a" \
  768.     "GLUT_LIB = libglut.a" \
  769.     "CC = gcc" \
  770.     "CFLAGS = -pedantic -O2" \
  771.     "MAKELIB = ../mklib.ar-ruv" \
  772.     "XLIBS = -lmoto -L/usr/X11/lib -lXmu -lX11"
  773.  
  774. netbsd:
  775.     $(MAKE) $(MFLAGS) targets \
  776.     "GL_LIB = libMesaGL.so" \
  777.     "GLU_LIB = libMesaGLU.so" \
  778.     "GLUT_LIB = libglut.so" \
  779.     "CC = gcc" \
  780.     "CFLAGS = -O2 -fPIC -DSHM -I/usr/X11R6/include -DHZ=100"  \
  781.     "MAKELIB = ../mklib.netbsd" \
  782.     "XLIBS = -L/usr/X11R6/lib -lXext -lXmu -lXi -lX11"
  783.  
  784. next:    
  785.     $(MAKE)    -f Makefile.NeXT targets \
  786.     "GL_LIB = libMesaGL.a" \
  787.     "GLU_LIB = libMesaGLU.a" \
  788.     "CFLAGS = -DOPENSTEP -O4" \
  789.     "MAKELIB = ../mklib.ar-ruv" \
  790.     "XLIBS = -lNeXT_s -lsys_s"
  791.  
  792. # For NeXTStep on non-X86 with X11
  793. next-x11:
  794.     $(MAKE) $(MFLAGS) targets \
  795.     "GL_LIB = libMesaGL.a" \
  796.     "GLU_LIB = libMesaGLU.a" \
  797.     "CFLAGS = -DOPENSTEP -pedantic -funroll-loops -O4" \
  798.     "MAKELIB = ../mklib.ar-ruv" \
  799.     "XLIBS = -L/usr/X11/lib -lX11 -lXext -lXmu -lXi"
  800.  
  801. # For NeXTStep on Intel X86 with X11
  802. next-x86-x11:
  803.     $(MAKE) $(MFLAGS) targets \
  804.     "GL_LIB = libMesaGL.a" \
  805.     "GLU_LIB = libMesaGLU.a" \
  806.     "CFLAGS = -DOPENSTEP -pedantic -funroll-loops -O4 -mieee-fp" \
  807.     "MAKELIB = ../mklib.ar-ruv" \
  808.     "XLIBS = -L/usr/X11/lib -lX11 -lXext -lXmu -lXi"
  809.  
  810. openbsd:
  811.     $(MAKE) $(MFLAGS) targets \
  812.     "GL_LIB = libMesaGL.so" \
  813.     "GLU_LIB = libMesaGLU.so" \
  814.     "GLUT_LIB = libglut.so" \
  815.     "CC = cc" \
  816.     "CFLAGS = -O2 -fPIC -I/usr/X11R6/include -DSHM -DHZ=100" \
  817.     "MAKELIB = ../mklib.openbsd" \
  818.     "XLIBS = -L/usr/X11R6/lib -lX11 -lXext -lXmu -lXi"
  819.  
  820. openstep:    
  821.     $(MAKE)    -f Makefile.OpenStep targets \
  822.     "GL_LIB = libMesaGL.a" \
  823.     "GLU_LIB = libMesaGLU.a" \
  824.     "CFLAGS = -DOPENSTEP -O4" \
  825.     "MAKELIB = ../mklib.openstep"
  826.  
  827. # OpenStep needs absolute paths for dylibs
  828. openstep-dylib:       
  829.     ( libdir=`cd $(LIBDIR); pwd`; \
  830.     $(MAKE) -f Makefile.OpenStep targets \
  831.     "LIBDIR=$$libdir" \
  832.     "GL_LIB=$$libdir/libMesaGL.dylib" \
  833.     "GLU_LIB=$$libdir/libMesaGLU.dylib" \
  834.     "CFLAGS= -DOPENSTEP -fno-common -O4" \
  835.     "MAKELIB=../mklib.openstep" \
  836.     )
  837.  
  838. os2-x11:
  839.     $(MAKE) $(MFLAGS) targets \
  840.     "GL_LIB   = MesaGL.a" \
  841.     "GLU_LIB  = MesaGLU.a" \
  842.     "GLUT_LIB = glut.a" \
  843.     "CC = gcc" \
  844.     "CFLAGS = -Zmt -O2 -Wall -funroll-loops -ansi -pedantic -ffast-math -D_SVID_SOURCE -D_BSD_SOURCE -I$(X11ROOT)/XFree86/include" \
  845.     "MAKELIB = ..\\mklib-emx.cmd " \
  846.     "XLIBS = -Zmt -Zcrtdll -Zexe -L$(X11ROOT)/XFree86/lib -lX11 -lXext -lXmu -lXt -lXi -lSM -lICE"
  847.  
  848. osf1:
  849.     $(MAKE) $(MFLAGS) targets \
  850.     "GL_LIB = libMesaGL.a" \
  851.     "GLU_LIB = libMesaGLU.a" \
  852.     "GLUT_LIB = libglut.a" \
  853.     "CC = cc" \
  854.     "CFLAGS = -O2 -std1 -ieee_with_no_inexact -DSHM -DNO_CONST" \
  855.     "MAKELIB = ../mklib.ar-ruv" \
  856.     "XLIBS = -lX11 -lXext -lXmu -lXi"
  857.  
  858. osf1-sl:
  859.     $(MAKE) $(MFLAGS) targets \
  860.     "GL_LIB = libMesaGL.so" \
  861.     "GLU_LIB = libMesaGLU.so" \
  862.     "GLUT_LIB = libglut.so" \
  863.     "CC = cc" \
  864.     "CFLAGS = -O2 -std1 -ieee_with_no_inexact -DSHM -DNO_CONST" \
  865.     "MAKELIB = ../mklib.osf1" \
  866.     "XLIBS = -lX11 -lXext -lXmu -lXi"
  867.  
  868. # QNX V4 & Watcom Compiler
  869. qnx:
  870.     $(MAKE) $(MFLAGS) targets \
  871.     "GL_LIB = libMesaGL.a" \
  872.     "GLU_LIB = libMesaGLU.a" \
  873.     "GLUT_LIB = libglut.a" \
  874.     "CC = cc" \
  875.     "CFLAGS = -O" \
  876.     "MAKELIB = ../mklib.qnx" \
  877.     "XLIBS = -L/usr/X11/lib -lX11"
  878.  
  879. sco:
  880.     $(MAKE) $(MFLAGS) targets \
  881.     "GL_LIB = libMesaGL.a" \
  882.     "GLU_LIB = libMesaGLU.a" \
  883.     "GLUT_LIB = libglut.a" \
  884.     "CC = gcc" \
  885.     "CFLAGS = -pedantic -O2 -mieee-fp" \
  886.     "MAKELIB = ../mklib.ar-ruv" \
  887.     "XLIBS = -L/usr/X11/lib -lX11"
  888.  
  889. solaris-x86:
  890.     $(MAKE) targets \
  891.     "GL_LIB = libMesaGL.a" \
  892.     "GLU_LIB = libMesaGLU.a" \
  893.     "GLUT_LIB = libglut.a" \
  894.     "CC = cc" \
  895.     "CFLAGS = -Xa -xO3 -xpentium -KPIC -I/usr/openwin/include -DSHM" \
  896.     "MAKELIB = ../mklib.solaris" \
  897.     "XLIBS = -L/usr/openwin/lib -R/usr/openwin/lib -lX11 -lXext -lXmu -lXi"
  898.  
  899. solaris-x86-gcc:
  900.     $(MAKE) targets \
  901.     "GL_LIB = libMesaGL.a" \
  902.     "GLU_LIB = libMesaGLU.a" \
  903.     "GLUT_LIB = libglut.a" \
  904.     "CC = gcc" \
  905.     "CFLAGS = -O3 -m486 -fPIC -I/usr/openwin/include -DSHM" \
  906.     "MAKELIB = ../mklib.solaris" \
  907.     "XLIBS = -L/usr/openwin/lib -R/usr/openwin/lib -lX11 -lXext -lXmu -lXi"
  908.  
  909. sunos4:
  910.     $(MAKE) $(MFLAGS) targets \
  911.     "GL_LIB = libMesaGL.a" \
  912.     "GLU_LIB = libMesaGLU.a" \
  913.     "GLUT_LIB = libglut.a" \
  914.     "CC = acc" \
  915.     "CFLAGS = -O -DSHM -DSUNOS4" \
  916.     "MAKELIB = ../mklib.ar-ruv" \
  917.     "XLIBS = -lX11 -lXext -lXmu -lXi"
  918.  
  919. sunos4-sl:
  920.     $(MAKE) $(MFLAGS) targets \
  921.     "GL_LIB = libMesaGL.so" \
  922.     "GLU_LIB = libMesaGLU.so" \
  923.     "GLUT_LIB = libglut.so" \
  924.     "CC = acc" \
  925.     "CFLAGS = -Kpic -O -I/usr/include/X11R5 -DSHM -DSUNOS4" \
  926.     "MAKELIB = ld -assert pure-text -o" \
  927.     "XLIBS = -L/usr/lib/X11R5 -lX11 -lXext -lXmu -lXi"
  928.  
  929. sunos4-gcc:
  930.     $(MAKE) $(MFLAGS) targets \
  931.     "GL_LIB = libMesaGL.a" \
  932.     "GLU_LIB = libMesaGLU.a" \
  933.     "GLUT_LIB = libglut.a" \
  934.     "CC = gcc" \
  935.     "CFLAGS = -O3 -DSHM -DSUNOS4 -I/usr/openwin/include" \
  936.     "MAKELIB = ../mklib.ar-ruv" \
  937.     "XLIBS = -L/usr/openwin/lib -lX11 -lXext -lXmu -lXi"
  938.  
  939. sunos4-gcc-sl:
  940.     $(MAKE) $(MFLAGS) targets \
  941.     "GL_LIB = libMesaGL.so.$(VERSION)" \
  942.     "GLU_LIB = libMesaGLU.so.$(VERSION)" \
  943.     "GLUT_LIB = libglut.so" \
  944.     "CC = gcc" \
  945.     "CFLAGS = -fPIC -O3 -I/usr/include/X11R5 -I/usr/include/X11R5 -DSHM -DSUNOS4 -DSOLARIS_2_4_BUG" \
  946.     "MAKELIB = ../mklib.sunos4" \
  947.     "XLIBS = -L/usr/openwin/lib -lX11 -lXext -lXmu -lXi"
  948.  
  949. sunos4-gcc-x11r6-sl:
  950.     $(MAKE) $(MFLAGS) targets \
  951.     "GL_LIB = libMesaGL.so.$(VERSION)" \
  952.     "GLU_LIB = libMesaGLU.so.$(VERSION)" \
  953.     "GLUT_LIB = libglut.so" \
  954.     "CC = gcc" \
  955.     "CFLAGS = -fPIC -O3 -I/usr/X11R6.3/include -DSHM -DSUNOS4 -DSOLARIS_2_4_BUG" \
  956.     "MAKELIB = ../mklib.sunos4" \
  957.     "XLIBS = -L/usr/X11R6.3/lib/X11 -lX11 -lXext -lXmu -lXi"
  958.  
  959. sunos5:
  960.     $(MAKE) $(MFLAGS) targets \
  961.     "GL_LIB = libMesaGL.a" \
  962.     "GLU_LIB = libMesaGLU.a" \
  963.     "GLUT_LIB = libglut.a" \
  964.     "CC = cc" \
  965.     "CFLAGS = -Xa -fast -xO4 -native -I/usr/openwin/include -I/usr/dt/include -DSHM -DSOLARIS_2_4_BUG" \
  966.     "MAKELIB = ../mklib.ar-ruv" \
  967.     "XLIBS = -L/usr/openwin/lib -L/usr/dt/lib -R/usr/openwin/lib -lX11 -lXext -lXmu -lXi"
  968.  
  969. sunos5-sl:
  970.     $(MAKE) $(MFLAGS) targets \
  971.     "GL_LIB = libMesaGL.so" \
  972.     "GLU_LIB = libMesaGLU.so" \
  973.     "GLUT_LIB = libglut.so" \
  974.     "CC = cc" \
  975.     "CFLAGS = -KPIC -Xa -O -I/usr/openwin/include -I/usr/dt/include -DSHM -DSOLARIS_2_4_BUG" \
  976.     "MAKELIB = ../mklib.sunos5" \
  977.     "XLIBS = -L/usr/openwin/lib -L/usr/dt/lib -R/usr/openwin/lib -lX11 -lXext -lXmu -lXi"
  978.  
  979. sunos5-ultra:
  980.     $(MAKE) $(MFLAGS) targets \
  981.     "GL_LIB = libMesaGL.a" \
  982.     "GLU_LIB = libMesaGLU.a" \
  983.     "GLUT_LIB = libglut.a" \
  984.     "CC = cc" \
  985.     "CFLAGS = -Xa -fast -xO5 -xtarget=ultra -I/usr/openwin/include -I/usr/dt/include -DSHM -DSOLARIS_2_4_BUG" \
  986.     "MAKELIB = ../mklib.ar-ruv" \
  987.     "XLIBS = -L/usr/openwin/lib -L/usr/dt/lib -R/usr/openwin/lib -lX11 -lXext -lXmu -lXi"
  988.  
  989. sunos5-ultra-sl:
  990.     $(MAKE) $(MFLAGS) targets \
  991.     "GL_LIB = libMesaGL.so" \
  992.     "GLU_LIB = libMesaGLU.so" \
  993.     "GLUT_LIB = libglut.so" \
  994.     "CC = cc" \
  995.     "CFLAGS = -KPIC -Xa -fast -xO5 -xtarget=ultra -I/usr/openwin/include -I/usr/dt/include -DSHM -DSOLARIS_2_4_BUG" \
  996.     "MAKELIB = ../mklib.sunos5" \
  997.     "XLIBS = -L/usr/openwin/lib -L/usr/dt/lib -R/usr/openwin/lib -lX11 -lXext -lXmu -lXi"
  998.  
  999. sunos5-gcc:
  1000.     $(MAKE) $(MFLAGS) targets \
  1001.     "GL_LIB = libMesaGL.a" \
  1002.     "GLU_LIB = libMesaGLU.a" \
  1003.     "GLUT_LIB = libglut.a" \
  1004.     "CC = gcc" \
  1005.     "CFLAGS = -O3 -I/usr/openwin/include -DSHM -DSOLARIS_2_4_BUG" \
  1006.     "MAKELIB = ../mklib.ar-ruv" \
  1007.     "XLIBS = -L/usr/openwin/lib -lX11 -lXext -lXmu -lXi"
  1008.  
  1009. sunos5-gcc-sl:
  1010.     $(MAKE) $(MFLAGS) targets \
  1011.     "GL_LIB = libMesaGL.so" \
  1012.     "GLU_LIB = libMesaGLU.so" \
  1013.     "GLUT_LIB = libglut.so" \
  1014.     "CC = gcc" \
  1015.     "CFLAGS = -fPIC -O3 -I/usr/openwin/include -DSHM -DSOLARIS_2_4_BUG" \
  1016.     "MAKELIB = ../mklib.sunos5" \
  1017.     "XLIBS = -L/usr/openwin/lib -R/usr/openwin/lib -lX11 -lXext -lXmu -lXi"
  1018.  
  1019. sunos5-x11r6-gcc-sl:
  1020.     $(MAKE) $(MFLAGS) targets \
  1021.     "GL_LIB = libMesaGL.so" \
  1022.     "GLU_LIB = libMesaGLU.so" \
  1023.     "GLUT_LIB = libglut.so" \
  1024.     "CC = gcc" \
  1025.     "CFLAGS = -fPIC -O3 -DSHM -DSOLARIS_2_4_BUG" \
  1026.     "MAKELIB = ../mklib.sunos5" \
  1027.     "XLIBS = -lSM -lICE -lX11 -lXext -lXmu -lXi -lnsl -lsocket"
  1028.  
  1029. # Contributed by John Stone
  1030. sunos5-pthread:
  1031.     $(MAKE) $(MFLAGS) targets \
  1032.     "GL_LIB = libMesaGL.a" \
  1033.     "GLU_LIB = libMesaGLU.a" \
  1034.     "GLUT_LIB = libglut.a" \
  1035.     "CC = cc" \
  1036.     "CFLAGS = -mt -Xa -fast -xO4 -native -I/usr/openwin/include -I/usr/dt/include -DSHM -DSOLARIS_2_4_BUG -DTHREADS -DPTHREADS" \
  1037.     "MAKELIB = ../mklib.ar-ruv" \
  1038.     "XLIBS = -L/usr/openwin/lib -L/usr/dt/lib -R/usr/openwin/lib -lX11 -lXext -lXmu -lXi -lpthread"
  1039.  
  1040. # Contributed by John Stone
  1041. sunos5-thread:
  1042.     $(MAKE) $(MFLAGS) targets \
  1043.     "GL_LIB = libMesaGL.a" \
  1044.     "GLU_LIB = libMesaGLU.a" \
  1045.     "GLUT_LIB = libglut.a" \
  1046.     "CC = cc" \
  1047.     "CFLAGS = -mt -Xa -fast -xO4 -native -I/usr/openwin/include -I/usr/dt/include -DSHM -DSOLARIS_2_4_BUG -DTHREADS -DSOLARIS_THREADS" \
  1048.     "MAKELIB = ../mklib.ar-ruv" \
  1049.     "XLIBS = -L/usr/openwin/lib -L/usr/dt/lib -R/usr/openwin/lib -lX11 -lXext -lXmu -lXi -lthread"
  1050.  
  1051. # Contributed by John Stone
  1052. sunos5-gcc-thread:
  1053.     $(MAKE) $(MFLAGS) targets \
  1054.     "GL_LIB = libMesaGL.a" \
  1055.     "GLU_LIB = libMesaGLU.a" \
  1056.     "GLUT_LIB = libglut.a" \
  1057.     "CC = gcc" \
  1058.     "CFLAGS = -O3 -I/usr/openwin/include -DSHM -DSOLARIS_2_4_BUG -D_REENTRANT -DTHREADS -DSOLARIS_THREADS" \
  1059.     "MAKELIB = ../mklib.ar-ruv" \
  1060.     "XLIBS = -L/usr/openwin/lib -lX11 -lXext -lXmu -lXi -lthread"
  1061.  
  1062. # Contributed by John Stone
  1063. sunos5-gcc-pthread:
  1064.     $(MAKE) $(MFLAGS) targets \
  1065.     "GL_LIB = libMesaGL.a" \
  1066.     "GLU_LIB = libMesaGLU.a" \
  1067.     "GLUT_LIB = libglut.a" \
  1068.     "CC = gcc" \
  1069.     "CFLAGS = -O3 -I/usr/openwin/include -DSHM -DSOLARIS_2_4_BUG -D_REENTRANT -DTHREADS -DPTHREADS" \
  1070.     "MAKELIB = ../mklib.ar-ruv" \
  1071.     "XLIBS = -L/usr/openwin/lib -lX11 -lXext -lXmu -lXi -lpthread"
  1072.  
  1073. # from Ron Metoyer (metoyer@iexist.flw.lucent.com)
  1074. sunSolaris-CC:
  1075.     $(MAKE) $(MFLAGS) targets \
  1076.     "GL_LIB = libMesaGL.a" \
  1077.     "GLU_LIB = libMesaGLU.a" \
  1078.     "GLUT_LIB = libglut.a" \
  1079.     "CC = CC" \
  1080.     "CFLAGS = -O -I/usr/openwin/include -DSHM -DSOLARIS_2_4_BUG" \
  1081.     "MAKELIB = ../mklib.ar-ruv" \
  1082.     "XLIBS = -L/usr/openwin/lib -R/usr/openwin/lib -lX11 -lXext -lXmu -lXi"
  1083.  
  1084. #This config doesn't work, Ultrix C compiler isn't ANSI compliant
  1085. ultrix:
  1086.     $(MAKE) $(MFLAGS) targets \
  1087.     "GL_LIB = libMesaGL.a" \
  1088.     "GLU_LIB = libMesaGLU.a" \
  1089.     "GLUT_LIB = libglut.a" \
  1090.     "CC = cc" \
  1091.     "CFLAGS = -O -Dconst=/**/" \
  1092.     "MAKELIB = ../mklib.ar-ruv" \
  1093.     "XLIBS = -lXmu -lX11 -lXi"
  1094.  
  1095. ultrix-gcc:
  1096.     $(MAKE) $(MFLAGS) targets \
  1097.     "GL_LIB = libMesaGL.a" \
  1098.     "GLU_LIB = libMesaGLU.a" \
  1099.     "GLUT_LIB = libglut.a" \
  1100.     "CC = gcc" \
  1101.     "CFLAGS = -pedantic -O2" \
  1102.     "MAKELIB = ../mklib.ar-ruv" \
  1103.     "XLIBS = -lXmu -lX11 -lXi"
  1104.  
  1105. # tested on Cray C90 running UNICOS 8.0.4
  1106. unicos:
  1107.     $(MAKE) $(MFLAGS) targets \
  1108.     "GL_LIB = libMesaGL.a" \
  1109.     "GLU_LIB = libMesaGLU.a" \
  1110.     "GLUT_LIB = libglut.a" \
  1111.     "CC = cc" \
  1112.     "CFLAGS =" \
  1113.     "MAKELIB = ../mklib/ar-rcv" \
  1114.     "XLIBS = -lX11 -lXext -lXmu -lXi"
  1115.  
  1116. unixware:
  1117.     $(MAKE) $(MFLAGS) targets \
  1118.     "GL_LIB = libMesaGL.a" \
  1119.     "GLU_LIB = libMesaGLU.a" \
  1120.     "GLUT_LIB = libglut.a" \
  1121.     "CC = cc" \
  1122.     "CFLAGS = -O -I/usr/X/include -DSHM" \
  1123.     "MAKELIB = ../mklib.ar-ruv" \
  1124.     "XLIBS = -lX11 -lXext -lXmu -lXi -lsocket -lnsl"
  1125.  
  1126. unixware-shared:
  1127.     $(MAKE) $(MFLAGS) targets \
  1128.     "GL_LIB = libMesaGL" \
  1129.     "GLU_LIB = libMesaGLU" \
  1130.     "GLUT_LIB = libglut" \
  1131.     "CC = cc" \
  1132.     "CFLAGS = -O -I/usr/X/include -KPIC,inline -DSHM" \
  1133.     "MAKELIB = ../mklib.solaris" \
  1134.     "XLIBS = -lX11 -lXext -lXmu -lXi -lsocket -lnsl"
  1135.  
  1136. vistra:
  1137.     $(MAKE) $(MFLAGS) targets \
  1138.     "GL_LIB = libMesaGL.a" \
  1139.     "GLU_LIB = libMesaGLU.a" \
  1140.     "GLUT_LIB = libglut.a" \
  1141.     "CC = gcc" \
  1142.     "CFLAGS = -pedantic -O2" \
  1143.     "MAKELIB = ../mklib.ar-ruv" \
  1144.     "XLIBS = -lX11 -lsocket -lnsl -lgen"
  1145.  
  1146.  
  1147. # for debugging on IRIX 5.x systems
  1148. irix-debug:
  1149.     pmake $(MFLAGS) targets \
  1150.     "GL_LIB = libMesaGL.a" \
  1151.     "GLU_LIB = libMesaGLU.a" \
  1152.     "GLUT_LIB = libglut.a" \
  1153.     "CC = cc" \
  1154.     "CFLAGS = -g -ansi -prototypes -fullwarn -DSHM -DUSE_X86_ASM" \
  1155.     "MAKELIB = ../mklib.ar-rcv" \
  1156.     "XLIBS = -lX11 -lXext -lXmu -lXi -lfpe -lXext -lXmu -lXi"
  1157.  
  1158. DEBUG:
  1159.     pmake $(MFLAGS) targets \
  1160.     "GL_LIB = libMesaGL.a" \
  1161.     "GLU_LIB = libMesaGLU.a" \
  1162.     "GLUT_LIB = libglut.a" \
  1163.     "CC = cc" \
  1164.     "CFLAGS = -g -ansi -prototypes -fullwarn -DSHM -DDEBUG" \
  1165.     "MAKELIB = ../mklib.ar-rcv" \
  1166.     "XLIBS = -lX11 -lXext -lXmu -lXi -lfpe"
  1167.  
  1168. # for debugging on Linux systems
  1169. linux-debug:
  1170.     $(MAKE) $(MFLAGS) targets \
  1171.     "GL_LIB = libMesaGL.a" \
  1172.     "GLU_LIB = libMesaGLU.a" \
  1173.     "GLUT_LIB = libglut.a" \
  1174.     "CC = gcc" \
  1175.     "CFLAGS = -g -ansi -pedantic -Wall -DSHM -DDEBUG -DSVGA -DFX -D_SVID_SOURCE -D_BSD_SOURCE -DUSE_X86_ASM -I/usr/include/glide -I/usr/local/glide/include" \
  1176.     "MAKELIB = ../mklib.ar-ruv" \
  1177.     "XLIBS = -L/usr/local/glide/lib -lglide2x -ltexus -L/usr/X11/lib -lX11 -lXext -lXmu -lXt -lXi -lSM -lICE -lvga" \
  1178.     "ASM_SOURCES = asm_386.S"
  1179.  
  1180. linux-elf-debug:
  1181.     $(MAKE) $(MFLAGS) targets \
  1182.     "GL_LIB = libMesaGL.so" \
  1183.     "GLU_LIB = libMesaGLU.so" \
  1184.     "GLUT_LIB = libglut.so" \
  1185.     "CC = gcc" \
  1186.     "CFLAGS = -g -ansi -pedantic -Wall -fPIC -ffast-math -D_SVID_SOURCE -D_BSD_SOURCE -I/usr/X11R6/include -DSHM -DFX -DUSE_X86_ASM -DDEBUG -I/usr/local/glide/include -I/usr/include/glide" \
  1187.     "MAKELIB = ../mklib.glide" \
  1188.     "XLIBS = -L/usr/local/glide/lib -lglide2x -L/usr/X11/lib -lX11 -lXext -lXmu -lXt -lXi -lSM -lICE -lvga" \
  1189.     "ASM_SOURCES = asm_386.S"
  1190.  
  1191. # for profiling on Linux systems
  1192. linux-prof:
  1193.     $(MAKE) $(MFLAGS) targets \
  1194.     "GL_LIB = libMesaGL.a" \
  1195.     "GLU_LIB = libMesaGLU.a" \
  1196.     "GLUT_LIB = libglut.a" \
  1197.     "CC = gcc" \
  1198.     "CFLAGS = -O2 -pg -ansi -pedantic -funroll-loops -mieee-fp -DSHM" \
  1199.     "MAKELIB = ../mklib.ar-ruv" \
  1200.     "XLIBS = -L/usr/X11/lib -lX11 -lXext -lXmu -lXi"
  1201.